package com.seedwill.common.meta.event;

import com.seedwill.common.meta.IContext;
import com.seedwill.common.meta.IEvent;
import com.seedwill.common.meta.base.ABaseEventObject;

/**
 * 元数据发生变化
 * 
 * 
 * @author yikuide@gmail.com
 *
 */
public class MetaEvent extends ABaseEventObject implements IEvent {

	public MetaEvent(Object source) {
		super(source);
	}

	private MetaEventType eventType;
	
	private Object eventSource;
	
	protected IContext context;

	/* (non-Javadoc)
	 * @see com.seedwill.common.meta.IEvent#getContext()
	 */
	@Override
	public IContext getContext() {
		// TODO Auto-generated method stub
		return context;
	}

	/* (non-Javadoc)
	 * @see com.seedwill.common.meta.IEvent#setContext(com.seedwill.common.meta.IContext)
	 */
	@Override
	public void setContext(IContext context) {
		this.context = context;
	}

	public MetaEventType getEventType() {
		return eventType;
	}

	public void setEventType(MetaEventType eventType) {
		this.eventType = eventType;
	}

	public Object getEventSource() {
		return eventSource;
	}

	public void setEventSource(Object eventSource) {
		this.eventSource = eventSource;
	}

}
